package enumdemo;

/**
 * @author gao
 * @date 2025/10/16 22:07
 */

public enum TestEnum {
    RED, BLACK, GREEN;

    public static void main(String[] args) {
        TestEnum testEnum = TestEnum.RED;
        switch (testEnum) {
            case RED:
                System.out.println("red");
                break;
            case BLACK:
                System.out.println("black");
                break;
            case GREEN:
                System.out.println("green");
                break;
        }
    }
}